<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../includes/common.jsp" %>

<form id="form_edit" action="${scriptPath}" method="get">
	<input type="hidden" name="action" value="mark.create" />
	<input type="hidden" name="more" value="${param.more}"></input>
	<input type="hidden" name="mc_exam" value="${exam.id}"></input>
	
	<p><label>Họ đệm: 
		<input type="text" name="mc_surname" value="${param.mc_surname}"></input></label> 
		<c:if test="${!(empty surnameErr)}">
			<span style="">${surnameErr}</span>
		</c:if>
	</p>
    <br />  
	
	<p><label>Tên: 
		<input type="text" name="mc_name" value="${param.mc_name}"></input></label> 
		<c:if test="${!(empty nameErr)}">
			<span style="">${nameErr}</span>
		</c:if>
	</p>
	<div class="error-validating">${action.studentNameError}</div>
    <br />  
	
	<p><label>MSSV: 
		<input type="text" name="mc_sid" value="${param.mc_sid}"></input></label> 
		<c:if test="${!(empty sidErr)}">
			<span style="">${nameErr}</span>
		</c:if>
	</p>
    <br />  

	<p><label>Ngày sinh (d-m-YYYY): 
        <input type="text" name="mc_sbirthday" value="${param.mc_sbirthday}"></input></label> 
        
		<c:if test="${!(empty dateErr)}">
			<span style="">${dateErr}</span>
		</c:if>
	</p>
	<div class="error-validating">${action.studentBirthdayError}</div>
    <br />  
	
	<p><label>Phiên bản đề:
	   <select name="mc_version" value="${param.mc_version}">
	   <c:forEach items="${versions}" var="version">
	       <option value="${version.id}">${version.id}
	           <c:if test="${not empty version.code}">- ${version.code}</c:if>
	       </option>
	   </c:forEach>
	   </select>
	</label>
	</p>
	<div class="error-validating">${action.versionError}</div>
    <br />  
	
	<p>
		<button type="submit" name="mc_submit" value="create">Tạo</button>
		<button type="button" onclick="location.href='${scriptPath}?action=exam.view&ev_id=${exam.id}';">Quay về bài thi</button>
	</p>
</form>

<script type="text/javascript">
</script>